Optimal. Leaf size=105 \[ -\frac{i b n \text{PolyLog}\left (2,-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}+\frac{i b n \text{PolyLog}\left (2,\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}+\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0660322, antiderivative size = 105, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {205, 2324, 12, 4848, 2391} \[ -\frac{i b n \text{PolyLog}\left (2,-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}+\frac{i b n \text{PolyLog}\left (2,\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}+\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 2324
Rule 12
Rule 4848
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{d+e x^2} \, dx &=\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}}-(b n) \int \frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \sqrt{e} x} \, dx\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}}-\frac{(b n) \int \frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{\sqrt{d} \sqrt{e}}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}}-\frac{(i b n) \int \frac{\log \left (1-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{2 \sqrt{d} \sqrt{e}}+\frac{(i b n) \int \frac{\log \left (1+\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{x} \, dx}{2 \sqrt{d} \sqrt{e}}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d} \sqrt{e}}-\frac{i b n \text{Li}_2\left (-\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}+\frac{i b n \text{Li}_2\left (\frac{i \sqrt{e} x}{\sqrt{d}}\right )}{2 \sqrt{d} \sqrt{e}}\\ \end{align*}
Mathematica [A] time = 0.0465185, size = 107, normalized size = 1.02 \[ \frac{b n \text{PolyLog}\left (2,\frac{\sqrt{e} x}{\sqrt{-d}}\right )-b n \text{PolyLog}\left (2,\frac{d \sqrt{e} x}{(-d)^{3/2}}\right )+\left (\log \left (\frac{\sqrt{e} x}{\sqrt{-d}}+1\right )-\log \left (\frac{d \sqrt{e} x}{(-d)^{3/2}}+1\right )\right ) \left (-\left (a+b \log \left (c x^n\right )\right )\right )}{2 \sqrt{-d} \sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.22, size = 332, normalized size = 3.2 \begin{align*} -{\ln \left ( x \right ) bn\arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}+{b\ln \left ({x}^{n} \right ) \arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}+{\frac{\ln \left ( x \right ) bn}{2}\ln \left ({ \left ( -ex+\sqrt{-de} \right ){\frac{1}{\sqrt{-de}}}} \right ){\frac{1}{\sqrt{-de}}}}-{\frac{\ln \left ( x \right ) bn}{2}\ln \left ({ \left ( ex+\sqrt{-de} \right ){\frac{1}{\sqrt{-de}}}} \right ){\frac{1}{\sqrt{-de}}}}+{\frac{bn}{2}{\it dilog} \left ({ \left ( -ex+\sqrt{-de} \right ){\frac{1}{\sqrt{-de}}}} \right ){\frac{1}{\sqrt{-de}}}}-{\frac{bn}{2}{\it dilog} \left ({ \left ( ex+\sqrt{-de} \right ){\frac{1}{\sqrt{-de}}}} \right ){\frac{1}{\sqrt{-de}}}}+{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}\arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}-{{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) \arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}-{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}\arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}+{{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) \arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}+{b\ln \left ( c \right ) \arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}}+{a\arctan \left ({ex{\frac{1}{\sqrt{de}}}} \right ){\frac{1}{\sqrt{de}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left (c x^{n}\right ) + a}{e x^{2} + d}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \log{\left (c x^{n} \right )}}{d + e x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (c x^{n}\right ) + a}{e x^{2} + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]